package com.meiqiongproperty.yiguanjia.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/**
 * author: Administrator
 * date: 2017/5/20.
 * package:com.meiqiongproperty.yiguanjia.utils
 */

public class phoneUtils {
    /**
     * 跳转系统拨号
     *
     * @param number
     */
    public static void goNativeCall(Context context,String number) {
        Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + number));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        if (DeviceUtil.isIntentAvailable(context, intent)) {
            context.startActivity(intent);
        }
    }
}
